<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="bootstrap-3.0.3/css/bootstrap.min.css">
<script type="text/javascript" src="bootstrap-3.0.3/js/bootstrap.js"></script>
<script type="text/javascript" src="script/jquery-1.11.3.js"></script>
<style>
.row {
	display: inline-block;
}

.thumbnail {
	width: 245px;
	margin-left: 25px;
}
</style>
</head>
<body>
	<div class="container">
		<%@ include file="shared/front_header.jsp"%>
			<div class="col-md-9 col-md-push-3" style="left: 269px;color: red;">
				<c:forEach var="i" items="${houses}">
					<div class="row">
						<div class="col-sm-6 col-md-4">
							<div class="thumbnail">
								<img src="CoverImages/${i.photo.fileName }"/>
								<div class="caption">
									<h3>${i.photo.title }</h3>
									<p>
										<a href="detail?id=${i.id}" class="btn btn-primary"
											role="button">查看详情</a>
									</p>
								</div>
							</div>
						</div>
					</div>
				</c:forEach>
			</div>
			<%@ include file="shared/nav.jsp"%>
		</div>
</body>
</html>